import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userToken: '',
    identity: 'default',
    path: ''
  },
  mutations: {
    setToken (state, token) {
      state.userToken = token
    },
    setIdentity (state, userIdentity) {
      state.identity = userIdentity
    },
    resetIdentity (state, defaultIdentity) {
      state.identity = defaultIdentity
    },
    setPath (state, path) {
      state.path = path
    }
  },
  actions: {
  },
  modules: {
  }
})
